package com.onlineclass.backstagemanagement.feign;

import com.onlineclass.backstagemanagement.config.FeignConfig;
import com.onlineclass.backstagemanagement.feignfallback.UserFeignFallBack;
import com.onlineclassbackstage.beans.ResultObject;
import com.onlineclassbackstage.beans.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "userServer",configuration = FeignConfig.class)
@Component
public interface UserFeign {


    @RequestMapping("/login")
    User login(@RequestParam("username") String username, @RequestParam("rolename") String rolename);


}
